home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-10-26 | 1.6 KB | 79 lines | [TEXT/ScoM] |
- >The following is a program I modified from Nigels tutorial. It complies fine,
- >but doesn't produce any tracks with note data.
-
- Here is the corrected version.
-
- (initdef) ; <-- use this otherwise you may evaluate defsyms twice
- (defsym a '(b c))
- (defsym b '(b b a d))
- (defsym c '(c c d a = ))
- (defsym d '(a = = b c))
-
- (setq mel1 (gen-notrans a 2))
-
- (def-symbol
- bass mel1
- )
-
- ; error
- ; you define here tonality for instrument called 'tonals' - you don't have
- ; such instrument
- ;
- ;(def-tonality
- ; tonals (activate-tonality (major c 4))
- ;)
-
- ; correct
-
- (def-tonality
- bass (activate-tonality (major c 4))
- )
-
- (def-length
- bass '(1/4 1/4 1/8)
- )
-
- (def-velocity
- bass '(74 84 70 65 60 94 80 70)
- )
-
- (def-zone
- bass '(1/1 1/1 1/1 1/1)
- )
-
- (def-channel
- bass 1
- )
-
- ; don't use this, it was replaced by midi tempo tracks
- ;(def-tempo 120
- ; default '(120 121 122 123 122 121)
- ;)
-
- ; use midi tempo track
- ; if you want to change tempo more often define the tempo lets say in 1/16 and
- ; make them as much that their sum will be 4/1 and then define the values
- ; for each of these zones with def-tempo. Here the tempo change points
- ; will be the same as the tonality zone points.
-
- (def-zone
- tempo '(1/1 1/1 1/1 1/1)
- )
-
- (def-tempo '(120 121 122 123))
-
- (midiport :modem)
-
- ; error:
- ; you cannot use compile-song here, because you are not using timesheet
- ; it compiles empty song because it compiles zero instruments
- ;
- ; (compile-song "ccl;output:" 1/4 "atest1"
-
- ; Instead you must use compile-instrument or the compile-instrument-p
- ; which plays back the results immediately.
-
- (compile-instrument-p "ccl;output:" "my song"
- bass
- )
-